package com.mis.pos.dto;

import com.mis.pos.entity.ItemEntity;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Description 订单表格 DTO对象
 * @Author yuxiang
 * @CreatedDate 2019/11/23 22:12
 */
@Data
public class SaleDTO {


    /**
     * 订单编号
     */
    private Long id;


    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 商品 数量列表
     */
    private List<ItemNumberDTO> itemNumberDTOS;

    /**
     * 总金额
     */
    private Double count;

    /**
     * 是否支付 0代表未支付 1代表已支付
     */
    private int isPayed;

    /**
     * 备注信息
     */
    private String description;

    public SaleDTO(Long id, Date updateTime, List<ItemNumberDTO> itemNumberDTOS, Double count,int isPayed,String description) {
        this.id = id;
        this.updateTime = updateTime;
        this.itemNumberDTOS = itemNumberDTOS;
        this.count = count;
        this.isPayed = isPayed;
        this.description = description;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public List<ItemNumberDTO> getItemNumberDTOS() {
        return itemNumberDTOS;
    }

    public void setItemNumberDTOS(List<ItemNumberDTO> itemNumberDTOS) {
        this.itemNumberDTOS = itemNumberDTOS;
    }

    public Double getCount() {
        return count;
    }

    public void setCount(Double count) {
        this.count = count;
    }
}
